<template>
  <div id="scroll-board">
    <dv-scroll-board :config="config" />
  </div>
</template>

<script>
export default {
  name: 'ScrollBoard',
  props:['scrollData'],
  watch:{
    scrollData:{
      handler(val){
        this.config = val;
      },
      deep:true
    }
  },
  data () {
    return {
      config: this.scrollData
    }
  }
}
</script>

<style lang="less">
#scroll-board {
  width: 40%;
  box-sizing: border-box;
  margin-left: 20px;
  height: 100%;
  overflow: hidden;
}
</style>
